package com.peycard.common;

import java.io.Serializable;

public class CompanyDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long idCompany;
	private String tradename;
	private String socialReason;
	private String corporateSpin;
	private String rfc;
	private String infonavit;
	private String legalRepresentative;
	private String stps;
	private String stpsRepresentative;
	private String country;
	private String state;
	private String street;
	private String numberInEx;
	private String suburb;
	private String zipCode;
	private String telephone1;
	private String telephone2;
	private String fax;
	private String email;
	private String web;
	private String username;
	private short isActive;

	public long getIdCompany() {
		return idCompany;
	}

	public void setIdCompany(long idCompany) {
		this.idCompany = idCompany;
	}

	public String getTradename() {
		return tradename;
	}

	public void setTradename(String tradename) {
		this.tradename = tradename;
	}

	public String getSocialReason() {
		return socialReason;
	}

	public void setSocialReason(String socialReason) {
		this.socialReason = socialReason;
	}

	public String getCorporateSpin() {
		return corporateSpin;
	}

	public void setCorporateSpin(String corporateSpin) {
		this.corporateSpin = corporateSpin;
	}

	public String getRfc() {
		return rfc;
	}

	public void setRfc(String rfc) {
		this.rfc = rfc;
	}

	public String getInfonavit() {
		return infonavit;
	}

	public void setInfonavit(String infonavit) {
		this.infonavit = infonavit;
	}

	public String getLegalRepresentative() {
		return legalRepresentative;
	}

	public void setLegalRepresentative(String legalRepresentative) {
		this.legalRepresentative = legalRepresentative;
	}

	public String getStps() {
		return stps;
	}

	public void setStps(String stps) {
		this.stps = stps;
	}

	public String getStpsRepresentative() {
		return stpsRepresentative;
	}

	public void setStpsRepresentative(String stpsRepresentative) {
		this.stpsRepresentative = stpsRepresentative;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getNumberInEx() {
		return numberInEx;
	}

	public void setNumberInEx(String numberInEx) {
		this.numberInEx = numberInEx;
	}

	public String getSuburb() {
		return suburb;
	}

	public void setSuburb(String suburb) {
		this.suburb = suburb;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getTelephone1() {
		return telephone1;
	}

	public void setTelephone1(String telephone1) {
		this.telephone1 = telephone1;
	}

	public String getTelephone2() {
		return telephone2;
	}

	public void setTelephone2(String telephone2) {
		this.telephone2 = telephone2;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWeb() {
		return web;
	}

	public void setWeb(String web) {
		this.web = web;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public short getIsActive() {
		return isActive;
	}

	public void setIsActive(short isActive) {
		this.isActive = isActive;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((corporateSpin == null) ? 0 : corporateSpin.hashCode());
		result = prime * result + ((country == null) ? 0 : country.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((fax == null) ? 0 : fax.hashCode());
		result = prime * result + (int) (idCompany ^ (idCompany >>> 32));
		result = prime * result
				+ ((infonavit == null) ? 0 : infonavit.hashCode());
		result = prime * result + isActive;
		result = prime
				* result
				+ ((legalRepresentative == null) ? 0 : legalRepresentative
						.hashCode());
		result = prime * result
				+ ((numberInEx == null) ? 0 : numberInEx.hashCode());
		result = prime * result + ((rfc == null) ? 0 : rfc.hashCode());
		result = prime * result
				+ ((socialReason == null) ? 0 : socialReason.hashCode());
		result = prime * result + ((state == null) ? 0 : state.hashCode());
		result = prime * result + ((stps == null) ? 0 : stps.hashCode());
		result = prime
				* result
				+ ((stpsRepresentative == null) ? 0 : stpsRepresentative
						.hashCode());
		result = prime * result + ((street == null) ? 0 : street.hashCode());
		result = prime * result + ((suburb == null) ? 0 : suburb.hashCode());
		result = prime * result
				+ ((telephone1 == null) ? 0 : telephone1.hashCode());
		result = prime * result
				+ ((telephone2 == null) ? 0 : telephone2.hashCode());
		result = prime * result
				+ ((tradename == null) ? 0 : tradename.hashCode());
		result = prime * result
				+ ((username == null) ? 0 : username.hashCode());
		result = prime * result + ((web == null) ? 0 : web.hashCode());
		result = prime * result + ((zipCode == null) ? 0 : zipCode.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompanyDTO other = (CompanyDTO) obj;
		if (corporateSpin == null) {
			if (other.corporateSpin != null)
				return false;
		} else if (!corporateSpin.equals(other.corporateSpin))
			return false;
		if (country == null) {
			if (other.country != null)
				return false;
		} else if (!country.equals(other.country))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (fax == null) {
			if (other.fax != null)
				return false;
		} else if (!fax.equals(other.fax))
			return false;
		if (idCompany != other.idCompany)
			return false;
		if (infonavit == null) {
			if (other.infonavit != null)
				return false;
		} else if (!infonavit.equals(other.infonavit))
			return false;
		if (isActive != other.isActive)
			return false;
		if (legalRepresentative == null) {
			if (other.legalRepresentative != null)
				return false;
		} else if (!legalRepresentative.equals(other.legalRepresentative))
			return false;
		if (numberInEx == null) {
			if (other.numberInEx != null)
				return false;
		} else if (!numberInEx.equals(other.numberInEx))
			return false;
		if (rfc == null) {
			if (other.rfc != null)
				return false;
		} else if (!rfc.equals(other.rfc))
			return false;
		if (socialReason == null) {
			if (other.socialReason != null)
				return false;
		} else if (!socialReason.equals(other.socialReason))
			return false;
		if (state == null) {
			if (other.state != null)
				return false;
		} else if (!state.equals(other.state))
			return false;
		if (stps == null) {
			if (other.stps != null)
				return false;
		} else if (!stps.equals(other.stps))
			return false;
		if (stpsRepresentative == null) {
			if (other.stpsRepresentative != null)
				return false;
		} else if (!stpsRepresentative.equals(other.stpsRepresentative))
			return false;
		if (street == null) {
			if (other.street != null)
				return false;
		} else if (!street.equals(other.street))
			return false;
		if (suburb == null) {
			if (other.suburb != null)
				return false;
		} else if (!suburb.equals(other.suburb))
			return false;
		if (telephone1 == null) {
			if (other.telephone1 != null)
				return false;
		} else if (!telephone1.equals(other.telephone1))
			return false;
		if (telephone2 == null) {
			if (other.telephone2 != null)
				return false;
		} else if (!telephone2.equals(other.telephone2))
			return false;
		if (tradename == null) {
			if (other.tradename != null)
				return false;
		} else if (!tradename.equals(other.tradename))
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		if (web == null) {
			if (other.web != null)
				return false;
		} else if (!web.equals(other.web))
			return false;
		if (zipCode == null) {
			if (other.zipCode != null)
				return false;
		} else if (!zipCode.equals(other.zipCode))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CompanyDTO [idCompany=" + idCompany + ", tradename="
				+ tradename + ", socialReason=" + socialReason
				+ ", corporateSpin=" + corporateSpin + ", rfc=" + rfc
				+ ", infonavit=" + infonavit + ", legalRepresentative="
				+ legalRepresentative + ", stps=" + stps
				+ ", stpsRepresentative=" + stpsRepresentative + ", country="
				+ country + ", state=" + state + ", street=" + street
				+ ", numberInEx=" + numberInEx + ", suburb=" + suburb
				+ ", zipCode=" + zipCode + ", telephone1=" + telephone1
				+ ", telephone2=" + telephone2 + ", fax=" + fax + ", email="
				+ email + ", web=" + web + ", username=" + username
				+ ", isActive=" + isActive + "]";
	}

}